package gameObjects;

import java.util.Vector;

import logic.Coords2D;

public class KeysCollection{
	private Vector<Coords2D> keys;	
	public KeysCollection()
	{
		keys=new Vector<Coords2D>();
	}
	
	public void setVector(Vector<Coords2D> k)
	{
		keys=k;
	}
	
	public void  removeByCoords(float x, float y)
	{
		for(int j=0; j<keys.size();j++){
			if(keys.get(j).getX()==x && keys.get(j).getY()==y){
				keys.remove(j);
				break;
			}
		}
	}
	
	public Vector<Coords2D> getVector()
	{
		return keys;
	}
}
